type
  PersonA = tuple
    name: string
    age: int

  PersonB = tuple[name:string, age:int]

  PersonC = (string, int)

var person1:PersonA=(name:"person1",age:10)
echo "person1: ", person1

var person2:PersonB=(name:"person2",age:20)
echo "person2: ", person2
echo "person2.name: ", person2.name
echo "erson2[0]: ", person2[0]
# not work
# var i=0
# echo person2[i]

var common:PersonC=(name:"common",age:30)
echo "common: ", common

var building1:tuple[street:string, number:int]=("building 1", 234)
echo "building1: ", building1

common=person1
echo "common: ", common
common=building1
echo "common: ", common

# not work
# person1=building1
